import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'

import accountBook from '@/components/accountBook/accountBook';

import HelloWorld from '@/components/HelloWorld'
import NovelList from '@/components/novel//NovelList'
import NovelChapter from '@/components/novel//NovelChapter' 
import NovelEdit from '@/components/novel//NovelEdit' 

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/accountBook',
      name: 'accountBook',
      component: accountBook
    },
    {
      path: '/novelList',
      name: 'NovelList',
      component: NovelList
    },
    {
      path: '/novelChapter',
      name: 'NovelChapter',
      component: NovelChapter
    },
    {
      path: '/novelEdit',
      name: 'NovelEdit',
      component: NovelEdit
    }

  ]
})
